package cvo.chess.client.entities.chessboard;

import cvo.chess.client.entities.game.IChessboard;

/**
 * 
 * @author Stijn.Van.Antwerpen
 *
 * Represents a single Tile on a Chessboard
 */
public class Tile {


	//A tile  know its position on a chessboard
	private ChessboardCoordinate position;
	
	public Tile(ChessboardCoordinate position){		
		this.position = position;
	}
	
	/**
	 * The color of the tile. This can be WHITE or BLACK
	 * 
	 * @return a String WHITE or BLACK
	 */
	public String getColor()
	{
		if(this.position.getRow() % 2 == this.position.getCol() % 2){
			return "WHITE";
		}else{
			return "BLACK";
		}
	}

	public String getPosition() {
		return this.position.toString();
	}


}
